let arr = ['小明','小红','小亮','小路','小天','小丽','小张','小刘']
let random = Math.floor(Math.random()*arr.length)
document.write(arr[random])
arr.splice(random,1)
console.log(arr)